package com.hibernate.db ;
import org.hibernate.cfg.Configuration;
import org.junit.Test;

public class CreateTable {
	/**
	 * 根据持久化类和映射文件创建表
	 *    前提条件：
	 *        <property name="hbm2ddl.auto">update</property>
	 */
	@Test
	public void testCreateTable(){
		Configuration configuration = new Configuration();
		configuration.configure();
		configuration.buildSessionFactory();
	}
}
